-- GENERATED SPELL FOR [Royal Teromoth] --


function spell0_18469(pUnit, Event) --@Pacifying Dust,n/a--
pUnit:FullCastSpellOnTarget(32904,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18469', 5309, 1)
end

function spell1_18469(pUnit, Event) --@Wing Buffet,Self--
pUnit:FullCastSpellOnTarget(32914,pUnit)
pUnit:RegisterEvent('Sorts_18469', 1000, 1)
end

function Sorts_18469(pUnit, Event)
local choix_sorts_18469 = math.random(0, 1)
if choix_sorts_18469 == 0 then
pUnit:RegisterEvent('spell0_18469', 1, 1)
end
if choix_sorts_18469 == 1 then
pUnit:RegisterEvent('spell1_18469', 1, 1)
end
end

function mob18469_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18469', math.random(1500, 3000), 1)
end

function mob18469_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18469_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18469_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18469, 1, 'mob18469_Action')
RegisterUnitEvent(18469, 2, 'mob18469_Leave')
RegisterUnitEvent(18469, 3, 'mob18469_Kill')
RegisterUnitEvent(18469, 4, 'mob18469_Die')
